using System;
using System.Windows.Forms;
using MDACalendar.helpers;

namespace MDACalendar.userControls {
	public partial class BottomMenu: UserControl {
		public event BottomMenuClickEventHandler formUpdate;

		public BottomMenu() {
			InitializeComponent();
		}

		#region udalosti
		private void chLeft_Click(object sender, EventArgs e) {
			if (formUpdate != null) {
				formUpdate(this, new BottomMenuClickEventArgs(menuButtons.left));
			}
		}

		private void chRight_Click(object sender, EventArgs e) {
			if (formUpdate != null) {
				formUpdate(this, new BottomMenuClickEventArgs(menuButtons.right));
			}
		}

		#endregion

	}
}